<?php
/**

 //  The DoYouHaoBaby PHP FrameWork - log
 //  +---------------------------------------------------------------------
 //
 //  “Copyright”
 //  +---------------------------------------------------------------------
 //  | (C) 2010 - 2099 http://doyouhaobaby.net All rights reserved.
 //  | This is not a free software,use is subject to license terms
 //  +---------------------------------------------------------------------
 //
 //  “About This File”
 //  +---------------------------------------------------------------------
 //  | log Index控制器
 //  +---------------------------------------------------------------------

*/

!defined('DYHB_PATH') && exit;

class IndexController extends Controller{

	/**
	 * 首页 < 默认访问 >
	 *
	 * @access public
	 * @return void
	 */
	public function index(){
		// 取出最新6条数据
		$arrList=FormModel::F()
				->order('`form_id` DESC')
				->top(6)
				->asArray()
				->query();
	
		// 手动记录SQL日志
		Log::W('调试的SQL语句：'.FormModel::F()->getLastSql(),Log::SQL);
		// 手动记录错误日志
		Log::W('模拟写入的错误信息',Log::ERR); 
		$this->display();
	}

}
